package top.saodisheng.myrule;

import com.netflix.loadbalancer.IRule;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Description:
 * 自定义负载均衡策略
 * @author 扫地生_saodisheng
 */
@Configuration
public class SaodishengRule {
    @Bean
    public IRule myRule(){
        return new MyRandomRule();//默认是轮询RandomRule,现在自定义为自己的
    }
}
